package com.pactera.exception;

/**
 * @author panglx
 * @since 2018年03月16日 11:31
 **/
public class UCServiceException extends Exception {

    /**
     * 状态码
     */
    private Integer code;

    public UCServiceException() {
    }

    public UCServiceException(String message) {
        super(message);
    }
    public UCServiceException(Integer code,String message) {
        super(message);
        this.code = code;
    }

    public UCServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    public UCServiceException(Throwable cause) {
        super(cause);
    }

    public UCServiceException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

}
